<div class="Huialert Huialert-success"><i class="icon-remove"></i>鼠标移开，自动保存更改</div>
<div class="page-container form form-horizontal">
		<div id="tab-system" class="HuiTab">
			<div class="tabBar cl">
				<span>网站设置</span>
				<span>业务设置</span>
				<span>图片设置</span>
				<span>扩展设置</span>
			</div>
			<div class="tabCon">
				<{volist name='info.site' id='v'}>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><{$v.d}>：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<{if condition="in_array($v.k, array('code','style','style_login','style_reg'))"}>
						<textarea class="textarea" 
						_url="<{:url('sys/editVal')}>"
						name='val' 
						tid="<{$v.id}>" 
						value="<{$v.v}>"
						onchange="com_edit(this)" ><{$v.v}></textarea>
						<{else}>
						<input class="input-text" type="text"
						_url="<{:url('sys/editVal')}>"
						name='val' 
						tid="<{$v.id}>" 
						value="<{$v.v}>"
						onchange="com_edit(this)" 
						/>
						<{/if}>
					</div>
				</div>
				<{/volist}>
			</div>
			<div class="tabCon">
				<{volist name='info.app' id='v'}>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><{$v.d}>：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input class="input-text" type="text"
						_url="<{:url('sys/editVal')}>"
						name='val' 
						tid="<{$v.id}>" 
						value="<{$v.v}>"
						onchange="com_edit(this)" 
						/>
					</div>
				</div>
				<{/volist}>
			</div>
			<div class="tabCon">
				<{volist name='info.pic' id='v'}>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><{$v.d}>：</label>
					<div class="formControls col-xs-8 col-sm-9">
					<form autocomplete="off" style="display:inline;" action="<{:url('sys/editPic')}>" method="post" enctype="multipart/form-data">
						<input type='hidden' name='id' value='<{$v.id}>' />
						<span class="btn-upload form-group">
						<input class="input-text" type="file"
						name='pic' 
						onchange="com_pic(this)" 
						/>
						</span>
					</form>	
					<{if condition="!empty($v.v)"}>
					<img src="/<{$v.v}>" height="50px" />&nbsp;&nbsp;
					<span class="ckbox ckbox-primary">
						<input type="checkbox" name="delete_pic" value="yes" field="v" tid="<{$v.id}>" _url="<{:url('Sys/delPic')}>" msg="你确定要删除图片吗？" onclick="p_del(this)" id="delete_pic_<{$v.id}>">
						<label for="delete_pic_<{$v.id}>">&nbsp;删除图片</label>
					</span>
					<{/if}>				
					</div>
				</div>
				<{/volist}>
			</div>
			
			
			<div class="tabCon">
				<{volist name='info.ext' id='v'}>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><{$v.d}>：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input class="input-text" type="text"
						_url="<{:url('sys/editVal')}>"
						name='val' 
						tid="<{$v.id}>" 
						value="<{$v.v}>"
						onchange="com_edit(this)" 
						/>
					</div>
				</div>
				<{/volist}>
			</div>
			
		</div>
</div>
<script type="text/javascript">
function p_del(e){
	var checked = $(e).prop("checked");
	if( checked ){
		com_clear(e);
	}
}

$(function(){
	$.Huitab("#tab-system .tabBar span","#tab-system .tabCon","current","click","0");
});
</script>